$(document).ready(function() {		
    $('.news').addClass('active');		
    $("#txtTitle_News").focus(function ()
    {		
        if($.getURLParam("news_id")==null) {
            initClearDefaultText();
        }
    });
});

function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) {
        selObj.selectedIndex=0;
    }  
}

function validate1(){
    if(document.getElementById('MM_insert').value=='formNews')
    {
        var msg='';
			
        /*if(document.getElementById('chkIPhonePush_News').checked==true) 
        {
            if(!confirm('Are you sure that you want to send this Push Message out to all devices?')) 
                document.getElementById('chkIPhonePush_News').checked=false;						
        }*/	
        if(document.getElementById('txtTitle_News').value=='')	msg+='Please enter a Title (mandatory field)\n';
        else if(document.getElementById('txtContent_News').value=='')	msg+='Please enter some Text Content (mandatory field)\n';
				
        if( msg!='') {
            alert(msg);
            return false;
        } else {
            return true;
        }
    } 
}
